package com.hsd.znsh.pojo.query;

import com.hsd.znsh.entity.Farm;
import com.hsd.znsh.enums.DeletedStatusEnum;
import com.hsd.znsh.hql.ClassName;
import com.hsd.znsh.hql.Equal;
import com.hsd.znsh.hql.Great;
import com.hsd.znsh.hql.Less;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-04-26 15:47:53
 */
@Data
@ClassName(Farm.class)
public class FarmQuery {

    @Great(column = "createDateTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @Less(column = "createDateTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @Equal
    private Integer farmTypeId;

    @Equal
    private Integer createUserId;

}
